<template>
    <div>
       <mt-swipe :auto="4000">
         <mt-swipe-item v-for="item in lunbitu" :key="item.id"><img :src="item.url" alt="图片不存在"></mt-swipe-item>
      </mt-swipe>
    </div>
</template>
<script>
export default {
    props:["lunbitu"],
    created(){
       this.getjpg()
    },
    methods:{
          getjpg(){
		 this.$http.get('http://localhost:3030').then(result=>{
			 var pic=JSON.parse(result.bodyText)
			 if(pic.status===0){
				this.nlist=pic.message
			 }else{
				 Toast("没找到图片")
			 }
		 })
         }
    }
}
</script>
<style scoped>
.mint-swipe{
    height:200px ;
}
img{
	width: 100%;
	height: 200px;
}
</style>


